import request from '@/utils/request'

// 查询清运任务工单列表
export function listOrder(query) {
  return request({
    url: '/work/order/list',
    method: 'get',
    params: query
  })
}

// 查询清运任务工单详细
export function getOrder(orderId) {
  return request({
    url: '/work/order/' + orderId,
    method: 'get'
  })
}

// 新增清运任务工单
export function addOrder(data) {
  return request({
    url: '/work/order',
    method: 'post',
    data: data
  })
}

// 修改清运任务工单
export function updateOrder(data) {
  return request({
    url: '/work/order',
    method: 'put',
    data: data
  })
}

// 删除清运任务工单
export function delOrder(orderId) {
  return request({
    url: '/work/order/' + orderId,
    method: 'delete'
  })
}


// 通过部门查询排班车辆combo
export function workPlanCarCombo(query) {
  return request({
    url: '/task/plan/car',
    method: 'get',
    params: query
  })
}

// 通过部门查询排班人员combo
export function workPlanPersonCombo(query) {
  return request({
    url: '/task/plan/person',
    method: 'get',
    params: query
  })
}
